//
//  XJCommunitySearchViewController.h
//  XinJiangMall
//
//  Created by RaoBo on 2018/6/4.
//  Copyright © 2018年 Tzyang. All rights reserved.
//

#import "BaseViewController.h"

/**
 {
 "customer_id": "7",
 "community_id": "8"
 }
 将社区id会传过去在上一界面重新刷新数据
 */
typedef void(^XJCommunitySearchViewControllerRefreshBlock)(NSString *community_id);

//回传 小区名字和地址
typedef void(^XJCommunitySerachViewControllerBlock)(NSString *communityName, NSString *address);
@interface XJCommunitySearchViewController : BaseViewController

/**经度*/
@property(nonatomic, copy) NSString *lng;
/**维度*/
@property(nonatomic, copy) NSString *lat;


/**在这个回调里面再次进行数据请求*/
@property (nonatomic, copy) XJCommunitySearchViewControllerRefreshBlock communitySearchVCRefreshBlock;

/**回传 小区名字和地址*/
@property (nonatomic, copy) XJCommunitySerachViewControllerBlock communitySearchVCBlock;

@end

// 已经入这个页面的网络请求
/**
 {
 "data" : {
 "content" : {
 "community_list" : [
 {
 "avatar" : "http:\/\/static.zertone1.com\/CcrIyZcpeCRL3oVBXBDEpF5FJXvLIYxG.png",
 "address" : "华盛达馆藏",
 "id" : 12,
 "geohash" : "wtm7ybtt",
 "lng" : 120.187084,
 "lat" : 30.194078999999999,
 "name" : "无名小区",
 "cover" : "http:\/\/static.zertone1.com\/xBKzFxYn6toMpkArRxmtktwDi6VZQEMP.jpg"
 },
 {
 "avatar" : "http:\/\/static.zertone1.com\/CcrIyZcpeCRL3oVBXBDEpF5FJXvLIYxG.png",
 "id" : 13,
 "geohash" : "wtm7yb7z",
 "lng" : 120.18483999999999,
 "lat" : 30.193059999999999,
 "name" : "有名小区",
 "cover" : ""
 },
 {
 "avatar" : "http:\/\/static.zertone1.com\/b6fFHjKmDqGKtCdhRmDDDk1ferIJVIOA.png",
 "address" : "杭州滨江区华盛达广场",
 "id" : 8,
 "geohash" : "wtm7y2u6",
 "lng" : 120.163383,
 "lat" : 30.194956000000001,
 "name" : "000000",
 "cover" : "http:\/\/static.zertone1.com\/cJBtgy9ue3NAtR1q3gnHY2G1myuYzMDL.jpg"
 },
 {
 "avatar" : "http:\/\/static.zertone1.com\/t8aAnK9hqxHySVG9JNCSO6bTCZsaZ68n.png",
 "address" : "滨江路222号0",
 "id" : 9,
 "geohash" : "wtm7ybz0",
 "lng" : 120.186886,
 "lat" : 30.267780999999999,
 "name" : "兴华苑小区",
 "cover" : "http:\/\/static.zertone1.com\/49eTlCAftTzywzvzgWo7o5LlwsJljmMN.jpg"
 }
 ]
 }
 },
 "code" : 0
 }
 */
